package com.znow.admin.dao.mapper.sys;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.znow.admin.dao.entity.sys.SysUserRoleEntity;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author Administrator
 * @description 针对表【sys_user_role(用户表)】的数据库操作Mapper
 * @createDate 2022-10-27 19:21:08
 * @Entity com.znow.admin.dao.entity.SysUserRole
 */
@Repository
public interface SysUserRoleMapper extends BaseMapper<SysUserRoleEntity> {

    /**
     * 选择用户id
     *
     * @param userId 用户id
     * @return {@link List}<{@link SysUserRoleEntity}>
     */
    List<SysUserRoleEntity> selectByUserId(Long userId);

}
